'use strict'

class  dongtai{
  
  constructor () {

  }
  //得到动态列表
  async list (c) {
    let wuser = c.service.model.shop
    let ulist = await wuser.list()
    c.send(ulist)
  }

  //删除数据
  async delete(c){
    // console.log(c.param.id)
    let wuser = c.service.model.shop
    await wuser.delete(c.param.id)
  }
}

module.exports = dongtai